<?php



/**需要验证登录token的路由 start  **/
Route::group(['middleware' => ['small_api_auth:small_api']], function () {

	Route::get('get_user_info', ['as' => 'get_user_info', 'uses' => 'UserController@get_user_info']);  //获取登录用户信息
	Route::post('update_user_info', ['as' => 'update_user_info', 'uses' => 'UserController@update_user_info']);  //更新用户信息

	Route::post('user-integral-detail', ['as' => 'user_integral_detail', 'uses' => 'UserController@user_integral_detail']);  //获取用户的积分明细


	Route::get('get_address_list', ['as' => 'get_address_list', 'uses' => 'UserController@get_address_list']);  //获取登录用户的收货地址
	Route::post('create_address', ['as' => 'create_address', 'uses' => 'UserController@create_address']);  //添加收货地址
	Route::get('get_one_address', ['as' => 'get_one_address', 'uses' => 'UserController@get_one_address']);  //获取指定的收货地址
	Route::post('update_address', ['as' => 'update_address', 'uses' => 'UserController@update_address']);  //更新指定的收货地址
	Route::delete('del_address', ['as' => 'del_address', 'uses' => 'UserController@del_address']);  //删除收货地址



	Route::post('get_my_coupon_to_goods', ['as' => 'get_my_coupon_to_goods', 'uses' => 'CouponController@get_my_coupon_to_goods']);  //下订单时获取有效的优惠券

	Route::post('create_feedback', ['as' => 'create_feedback', 'uses' => 'FeedbackController@create_feedback']);  //添加反馈

	Route::get('get_viplevel', ['as' => 'get_viplevel', 'uses' => 'UserController@get_viplevel']);  //vip等级列表

	Route::get('get_my_coupons', ['as' => 'get_my_coupons', 'uses' => 'CouponController@get_my_coupons']);  //获取我的优惠券


	Route::post('create_collect', ['as' => 'create_collect', 'uses' => 'FeedbackController@create_collect']);  //点击收藏功能
    Route::get('get_collect_list', ['as' => 'get_collect_list', 'uses' => 'FeedbackController@get_collect_list']);  //收藏列表
    Route::get('get_collect_list_small', ['as' => 'get_collect_list_small', 'uses' => 'FeedbackController@get_collect_list_small']);  //收藏列表
	Route::delete('del_collect', ['as' => 'del_collect', 'uses' => 'FeedbackController@del_collect']);  //删除收藏



});



//Route::get('get_invite', ['as' => 'get_invite', 'uses' => 'FeedbackController@get_invite']);  //邀请页面
Route::get('get_invite', ['as' => 'get_invite', 'uses' => 'FeedbackController@get_invite']);  //邀请页面
Route::get('my-invite-list', ['as' => 'myinvite_list', 'uses' => 'FeedbackController@myinvite_list']);  //邀请页面




Route::post('use_coupon', ['as' => 'api_use_coupon', 'uses' => 'CouponController@use_coupon']);  //扫码使用优惠券【暂未使用】
Route::get('get_coupon_detail', ['as' => 'get_coupon_detail', 'uses' => 'CouponController@get_coupon_detail']);  //获取优惠券详情
	


Route::get('get_banner_list', ['as' => 'get_banner_list', 'uses' => 'FeedbackController@get_banner_list']);  //获取banner图片

Route::get('get_notice_list', ['as' => 'get_notice_list', 'uses' => 'FeedbackController@get_notice_list']);  //获取公告列表数据




Route::get('get_goods_list', ['as' => 'get_goods_list', 'uses' => 'GoodsController@get_goods_list']);  //获取积分兑换
Route::get('get_goods_more', ['as' => 'get_goods_more', 'uses' => 'GoodsController@get_goods_more']);  //获取更多的指定类型商品
Route::get('get_goods_detail', ['as' => 'get_detail_goods', 'uses' => 'GoodsController@get_goods_detail']);  //商品详情


Route::post('send_phone_code', ['as' => 'send_phone_code', 'uses' => 'UserController@send_phone_code']);//获取手机验证码




Route::post('b64_upload_img', ['as' => 'b64_upload_img', 'uses' => 'UserController@b64_upload_img']);//个人中心修改头像

// Route::get('ewm_png', ['as' => 'ewm_png', 'uses' => 'UserController@ewm_png']);//生成二维码图片
// Route::get('sao_ewm_png', ['as' => 'sao_ewm_png', 'uses' => 'UserController@sao_ewm_png']);//扫描二维码图片



Route::post('set_order_helper', ['as' => 'set_order_helper', 'uses' => 'FeedbackController@set_order_helper']);//设置订单助手
Route::get('get_order_helper', ['as' => 'get_order_helper', 'uses' => 'FeedbackController@get_order_helper']);//获取订单助手




// Route::get('get_city_list', ['as' => 'get_city_list', 'uses' => 'FeedbackController@get_city_list']);//开通城市列表


Route::post('create-order-repairstore-comment', ['as' => 'create_order_repairstore_comment', 'uses' => 'RepairstoreController@create_order_repairstore_comment']);  //维修店 服务订单评论

Route::post('create-order-comment', ['as' => 'create_order_comment', 'uses' => 'OrderMallController@create_order_comment']);  //积分、人民币商品订单评论

Route::get('get-goods-order', ['as' => 'get_goods_order', 'uses' => 'OrderMallController@get_goods_order']);  //获取指定订单信息

Route::post('get-checked-order-one', ['as' => 'get_checked_order_one', 'uses' => 'OrderMallController@checked_order_one']);  //检测用户是否有未支付的订单


Route::get('goods_coupon_imputed_price', ['as' => 'goods_coupon_imputed_price', 'uses' => 'GoodsController@goods_coupon_imputed_price']);//计算使用优惠券后的优惠价格


Route::get('get-repairstore-goods-detail', ['as' => 'get_repairstore_goods_detail', 'uses' => 'RepairstoreController@get_repairstore_goods_detail_to_order']); //根据订单获取维修店商品的详情


//测试的路由  
Route::get('send_coupon_to_user', ['as' => 'send_coupon_to_user', 'uses' => 'FeedbackController@send_coupon_to_user']);//用户分享达到要求后赠送优惠券

//定时任务路由  定时修改领取优惠券过期状态
Route::get('change-coupon-status', ['as' => 'change_coupon_status', 'uses' => 'CouponController@change_coupon_status']);
//定时任务路由   定期给不同等级会员发放福利
Route::get('send-material-benefits', ['as' => 'send_material_benefits', 'uses' => 'CouponController@send_material_benefits']);//每月给会员发放会员等级礼包
//定时任务路由    定期检测活动是否到期
Route::get('send-activity-status', ['as' => 'send_activity_status', 'uses' => 'CouponController@send_activity_status']);//定期检测活动是否到期





Route::get('send-upgrade-material-benefits', ['as' => 'send_upgrade_material_benefits', 'uses' => 'CouponController@send_upgrade_material_benefits']);   //会员升级时发放会员等级礼包


//给用户添加优惠券
Route::post('create-coupon-to-user', ['as' => 'create_coupon_to_user', 'uses' => 'CouponController@create_coupon_to_user']);


//评论订单给用户添加积分
Route::post('user-integral-change', ['as' => 'user_integral_change', 'uses' => 'UserController@user_integral_change']);

Route::post('chenge-user-integral', ['as' => 'chenge_user_integral', 'uses' => 'UserController@chenge_user_integral']);

Route::get('api-vip-protocol', ['as' => 'api_vip_protocol', 'uses' => 'FeedbackController@protocol_vip']);   //获取道路救援服务协议








